import request2 from '@/utils/request2'
import { contractApiUrl } from '../../config'
// let contractApiUrl = '/cscec-contract-business-lzh'

export default {
  typesLabel(data, params) {
    return request2({
      url: contractApiUrl + '/contract/typeslabel', method: 'post', params, data
    })
  },
  print(data, params) {
    return request2({
      url: contractApiUrl + '/contractNew/print/' + params.id, method: 'get', params, data
    })
  },
  //新增分包合同
  add(data, params) {
    return request2({
      url: contractApiUrl + '/contractNew/addSubContractNew', method: 'post', params, data
    })
  },
  //新增分包合同
  update(data, params) {
    return request2({
      url: contractApiUrl + '/contractNew/editSubContractNew', method: 'post', params, data
    })
  },
  del(data, params) {
    return request2({
      url: contractApiUrl + '/contractNew/deleteBySubContractNew', method: 'post', params, data
    })
  },
  list(data, params) {
    return request2({
      url: contractApiUrl + '/contractNew/list', method: 'post', params, data
    })
  },
  findById(data, params) {
    return request2({
      url: contractApiUrl + '/contractNew/' + params.id, method: 'get', params, data
    })
  },
  queryEmployee(data, params) {
    return request2({
      url: contractApiUrl + '/contractNew/queryEmployee', method: 'post', params, data
    })
  },
  findCount(data, params) {
    return request2({
      url: contractApiUrl + '/contractNew/findCount', method: 'post', params, data
    })
  },
  getYnzhuDate(data, params) {
    return request2({
      url: contractApiUrl + '/contractNew/getYnzhuDate', method: 'get', params, data
    })
  },
  //分包商台账列表--名称与社会信用代码去重
  getSubContractorAll(data, params) {
    return request2({
      url: contractApiUrl + '/contractNew/getSubContractorAll', method: 'post', params, data
    })
  },
  //分包商台账列表--根据信用代码查询所属分包合同
  getSubContractByScc(data, params) {
      return request2({
        url: contractApiUrl + '/contractNew/getSubContractByScc', method: 'post', params, data
      })
    },
  

}
